<form id="edit-form" class="form-horizontal" autocomplete="off" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">显示位置:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-group" data-rule="required;" title="选择显示位置" class="form-control selectpicker" name="row[group]">
                {foreach $bannerGroups as $key=>$group}
                <option value="{$key|htmlentities}" {$key==$row.group?'selected':''}>{$group.name|htmlentities} - {$group.size|htmlentities}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">发布城市:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city_id" data-rule="" data-source="xilujob/area/selectpage" data-params='{"custom[level]":"2","custom[status]":"1"}' data-field="name"
                   class="form-control selectpage" name="row[city_id]" placeholder="全国请留空，可名称搜索" type="text"
                   value="{$row.city_id|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-url" data-rule="required(from, .url);url" data-msg-required="链接和小程序链接至少填一项" class="form-control url" name="row[url]" type="text" value="{$row.url|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">小程序链接:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-minapp_url" placeholder="若留空不会在小程序显示" class="form-control url" name="row[minapp_url]" type="text" value="{$row.minapp_url|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">小程序链接示例:</label>
        <div class="col-xs-12 col-sm-8">
            <h6><small>文章详情：/pages/user/news_info?id=2</small></h6>
            <h6><small>企业详情：/pages/user/company_info?id=2</small></h6>
            <h6><small>职位详情：/pages/user/post_info?id=2</small></h6>
            <h6><small>人才详情：/pages/company/talent_details?id=2</small></h6>
            <h6><small>零工详情：/pages/public/odd_job_info?id=2</small></h6>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-memo" data-rule="" class="form-control" name="row[memo]">{$row.memo|htmlentities}</textarea>
        </div>
    </div>
    <!--<div class="form-group">-->
    <!--<label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>-->
    <!--<div class="col-xs-12 col-sm-8">-->
    <!--<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">-->
    <!--</div>-->
    <!--</div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
